<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html:html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title></title>
</head>

<body>	

	<div style="padding: 5px; border-top: black thin solid; border-bottom: black thin solid;" >
	
		<c:if test="${sessionScope.userContainer != null}">
		
			<div style="text-align: right; width: 100%;">
		
				<bean:message key="global.welcome"/><b><c:out value="${sessionScope.userContainer.usuario.screenName}"></c:out></b>
				&nbsp;&nbsp;
				<html:link action="logout">
					<bean:message key="login.salir" />
				</html:link>
							
			</div>
			
		</c:if>
		
		<c:if test="${sessionScope.userContainer == null}">
	
			<html:form action="login" method="post" style="float:right;">
				
				<label for="email" class="styled"><bean:message key="login.email" />:</label>
				<html:text size="22" property="email" />
				<label for="password" class="styled"><bean:message key="login.password" />:</label>
				<html:password size="22" property="password" />
				<html:submit value="Iniciar sesion" />			
			
				
			</html:form>
			
			<div style="clear:both"></div>
			
			<div style="float:right;">
				
				<html:link action="toRegistroUsuario">
					<bean:message key="login.registro" />
				</html:link>
				&nbsp;&nbsp;
				<html:link action="toForgotPassword">
					<bean:message key="login.forgot.pwd" />
				</html:link>
						
			</div>
			
			<div style="clear:both"></div>
			
		</c:if>
		
	</div>

</body>


</html:html>
